package com.oyjd.business.activity;

import android.app.Activity;
import android.os.Bundle;

import com.oyjd.R;
import com.oyjd.framework.ui.title.TitleBar;
import com.oyjd.framework.ui.webview.WebViewEx;

public class WebViewDemo extends Activity {
	private TitleBar titleBar;// 标题
	private WebViewEx webView;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act_webview);

		// 接收参数
		// Bundle bundle = this.getIntent().getBundleExtra("name");
		// String fileName = (String) bundle.getSerializable("fileName");

		// 组件初始化
		this.titleBar = (TitleBar) this.findViewById(R.id.titleBar);
		this.titleBar.setBackVisiable(true);
		this.titleBar.setTitleText("统计结果");

		this.webView = (WebViewEx) this.findViewById(R.id.webView);		
		webView.loadUrlEx("http://www.baidu.com");
	}

}
